package entity;

import lombok.Data;

import java.util.Date;

@Data
public class Comment {
    private Integer id;
    private User user;
    private Article article;
    private String content;
    private Integer status;
    private Date addtime;

    public Comment() {
    }

    public Comment(Integer id, User user, Article article, String content, Integer status, Date addtime) {
        this.id = id;
        this.user = user;
        this.article = article;
        this.content = content;
        this.status = status;
        this.addtime = addtime;
    }
}
